import request from '@/utils/request'
// gasManage:stockManage:goodInfo:list
export function searchGoodsApi (query) {
    return request({
        url: '/stock/goods/list',
        method: 'get',
        params: query
    })
}
// gasManage:stockManage:goodInfo:list
export function searchGoodByIdApi (id) {
    return request({
        url: '/stock/goods/'+id,
        method: 'get',
    })
}
// gasManage:stockManage:goodInfo:add
export function addGoodApi(data) {
    return request({
        url: '/stock/goods',
        method: 'post',
        data: data
    })
}
// gasManage:stockManage:goodInfo:edit
export function editGoodApi(data) {
    return request({
        url: '/stock/goods',
        method: 'put',
        data: data
    })
}
// gasManage:stockManage:goodInfo:delete
export function deleteGoodApi(id) {
    return request({
        url: '/stock/goods/delete/'+id,
        method: 'delete'
    })
}
// gasManage:stockManage:goodInfo:status
export function changeGoodStatus(data){
    return request({
        url: '/stock/goods/enable',
        method: 'post',
        data: data
    })
}